<?php
/**
 * Created by PhpStorm.
 * Author: 黑瞎子
 * Date: 2018/3/16
 * Time: 11:08
 */

namespace app\api\model;


use think\Model;

class Image extends BaseModel
{
    //隐藏字段
    protected $hidden = ['id', 'from', 'delete_time', 'update_time'];

    //获取器 处理图片url
    public function getUrlAttr($value, $date){
        return $this->prefixImgUrl($value, $date);
    }
}